package models

import (
	"time"

	"github.com/shopspring/decimal"
)

type ExchangeLossRule struct {
	ID        int64           `gorm:"primaryKey" json:"id"`
	UserID    *int64          `json:"user_id"`
	Rate      decimal.Decimal `json:"rate" gorm:"type:decimal(10,4);not null;default:2.0000"`
	IsDefault int             `json:"is_default"`
	Status    string          `json:"status"`
	CreatedAt time.Time       `json:"created_at"`
	UpdatedAt time.Time       `json:"updated_at"`
}

func (ExchangeLossRule) TableName() string {
	return "exchange_loss_rules"
}
